<template>
<h1>El组件-表单</h1>
<el-form style="width:500px;margin: 0 auto;"  label-width="80px">
  <el-form-item label="用户名">
    <el-input placeholder="请输入用户名" ></el-input>
  </el-form-item>
  <el-form-item label="密码">
    <el-input placeholder="请输入密码" ></el-input>
  </el-form-item>
  <el-form-item label="性别">
    <el-radio-group >
      <el-radio label="男" value="1"></el-radio>
      <el-radio label="女" value="0"></el-radio>
    </el-radio-group>
  </el-form-item>
  <el-form-item label="所在地">
    <el-select placeholder="请选择" >
      <el-option label="上海" value="sh" ></el-option>
      <el-option label="北京" value="bj" ></el-option>
      <el-option label="广州" value="gz" ></el-option>
    </el-select>
    <el-form-item label="管理员">
      <el-switch></el-switch>
    </el-form-item>
    <el-form-item>
      <el-button type="success" @click="reg">点我提交</el-button>
    </el-form-item>
  </el-form-item>
</el-form>

</template>

<script setup>

</script>


<style scoped>

</style>